package org.dxy.api.dto.request.substitute;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * 工单应用替代料请求DTO
 * @author dxy
 * @createTime 2025/9/13
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ApplySubstituteMaterialToWorkOrderRequest {
    
    /** 工单ID */
    @NotNull(message = "工单ID不能为空")
    private Long workOrderId;
    
    /** 实际使用数量 */
    @NotNull(message = "实际使用数量不能为空")
    @Positive(message = "实际使用数量必须大于0")
    private BigDecimal actualQuantity;
}